package cn.com.mrzheng.web.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.sql.Date;
import java.util.List;

public class User extends BaseEntity {
  private String email;
  private String password;
  private String salt;
  private String locked;
  private String phone;
  private String username;
  @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
  private java.sql.Date createTime;
  List<Auth> authList;
  Role role;

  public List<Auth> getAuthList() {
    return authList;
  }

  public void setAuthList(List<Auth> authList) {
    this.authList = authList;
  }

  public Role getRole() {
    return role;
  }

  public void setRole(Role role) {
    this.role = role;
  }

  public Date getCreateTime() {
    return createTime;
  }

  public void setCreateTime(Date createTime) {
    this.createTime = createTime;
  }

  public String getEmail() {
    return email;
  }

  public void setEmail(String email) {
    this.email = email;
  }


  public String getPassword() {
    return password;
  }

  public void setPassword(String password) {
    this.password = password;
  }


  public String getSalt() {
    return salt;
  }

  public void setSalt(String salt) {
    this.salt = salt;
  }


  public String getLocked() {
    return locked;
  }

  public void setLocked(String locked) {
    this.locked = locked;
  }


  public String getPhone() {
    return phone;
  }

  public void setPhone(String phone) {
    this.phone = phone;
  }


  public String getUsername() {
    return username;
  }

  public void setUsername(String username) {
    this.username = username;
  }

}
